#include"PollServer.hpp"

void Usage(const char *str)
{
    std::cout << "请输入: " << str << " 端口号" << std::endl;
}
int main(int argc, char *argv[])
{
    if (argc != 2)
    {
        Usage(argv[0]);
        exit(0);
    }
    EnableMonitorStrategy();
    uint16_t port = std::stoi(argv[1]);
    std::unique_ptr<SelectServer> selectsvr = std::make_unique<SelectServer>(port);
    selectsvr->Run();
    return 0;
}